#include "Ball.h"


Ball::Ball(int x, int z) : Collectable(x,z)
{
}


Ball::~Ball(void)
{
}

void Ball::init(){

   glNewList(BALL, GL_COMPILE);
      glutSolidSphere(0.15,22,22);
   glEndList();
}

void Ball :: display(){
	glPushMatrix();
	glColor3f(1,1,0);
	glTranslatef(x,0,z);
   glCallList(BALL);
	glPopMatrix();
}

